import request from '@/utils/request'

// 查询题库试题管理列表
export function listStashQuestion(query) {
  return request({
    url: '/manager/stashQuestion/list',
    method: 'get',
    params: query
  })
}

// 查询题库试题管理详细
export function getStashQuestion(quesId) {
  return request({
    url: '/manager/stashQuestion/' + quesId,
    method: 'get'
  })
}

// 新增题库试题管理
export function addStashQuestion(data) {
  return request({
    url: '/manager/stashQuestion',
    method: 'post',
    data: data
  })
}

// 修改题库试题管理
export function updateStashQuestion(data) {
  return request({
    url: '/manager/stashQuestion',
    method: 'put',
    data: data
  })
}

// 删除题库试题管理
export function delStashQuestion(quesId) {
  return request({
    url: '/manager/stashQuestion/' + quesId,
    method: 'delete'
  })
}
